home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / file / managers / git-4.3 / git-4 / git-4.3.7 / src / Makefile.in < prev    next >
Encoding:
Makefile  |  1995-07-18  |  5.1 KB  |  166 lines

  1.  
  2. ###############################################################################
  3. #                                          #
  4. #          Makefile for GNU Interactive Tools 4.3.7              #
  5. #      Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.          #
  6. #                                          #
  7. ###############################################################################
  8.  
  9.  
  10. #
  11. #   If you make changes in this file in order to compile GIT on a system not
  12. # included in the file PLATFORMS, please send me a patch. My internet address
  13. # is tudor@chang.pub.ro. I'll include it in the next release. Thanks.
  14. #
  15.  
  16. #
  17. # GIT default install directory. You may change this if you want to install
  18. # the GIT package in a different place.
  19. #
  20.  
  21.  
  22. PRODUCT        = "@PRODUCT@"
  23. VERSION        = "@VERSION@"
  24.  
  25.  
  26. srcdir        = @srcdir@
  27. VPATH        = @srcdir@
  28.  
  29. prefix        = @prefix@
  30. bindir        = $(prefix)/bin
  31. libdir        = $(prefix)/lib/git
  32. termdir        = $(prefix)/lib/git/term
  33.  
  34. SHELL        = /bin/sh
  35. CFLAGS        = @CFLAGS@ -I. -I.. -I$(srcdir) -I$(srcdir)/..
  36. LDFLAGS        = @LDFLAGS@
  37. CPPFLAGS    = @CPPFLAGS@ -I. -I.. -I$(srcdir) -I$(srcdir)/..
  38. DEFS        = @DEFS@ -DHOST=\"@HOST@\" -DTERM_DIRECTORY=\"$(termdir)\"\
  39.           -DPRODUCT=\"$(PRODUCT)\" -DVERSION=\"$(VERSION)\"
  40. LIBS        = @LIBS@
  41. CC        = @CC@
  42. CPP        = @CPP@ $(CPPFLAGS) $(DEFS)
  43. INSTALL        = @INSTALL@
  44. INSTALL_PROGRAM    = @INSTALL_PROGRAM@
  45. INSTALL_DATA    = @INSTALL_DATA@
  46. HOST        = @HOST@
  47.  
  48.  
  49. GIT_OBJS    = @GIT_OBJS@ tty.o window.o inputline.o status.o panel.o git.o\
  50.           configure.o misc.o signals.o xmalloc.o xstring.o xio.o xid.o\
  51.           xtimer.o xstack.o system.o fsusage.o fnmatch.o
  52. GITCMP_OBJS    = gitcmp.o
  53. GITMATCH_OBJS    = @GITMATCH_OBJS@ gitmatch.o fnmatch.o
  54. GITWIPE_OBJS    = gitwipe.o
  55. GITKEYS_OBJS    = gitkeys.o
  56. GITPS_OBJS    = @GITPS_OBJS@ tty.o window.o configure.o misc.o gitps.o\
  57.           xmalloc.o xstring.o xio.o
  58. GITVIEW_OBJS    = @GITVIEW_OBJS@ tty.o window.o configure.o misc.o gitview.o\
  59.           xmalloc.o xstring.o xio.o
  60. GIT_BINS    = git gitps gitview gitcmp gitkeys gitmatch gitwipe
  61. GIT_SCRIPTS    = gitmount gitaction gitredir gitrgrep .gitaction
  62.  
  63.  
  64. all:    $(GIT_BINS)
  65.  
  66. installdirs:
  67.     $(srcdir)/../mkinstalldirs $(bindir) $(libdir)
  68.     chmod 755 $(bindir) $(libdir)
  69.  
  70. .c.o:
  71.     $(CC) -c $(CFLAGS) $(DEFS) $(srcdir)/$*.c
  72.  
  73. git:    $(GIT_OBJS)
  74.     $(CC) $(LDFLAGS) -o $@ $(GIT_OBJS) $(LIBS)
  75.  
  76. gitps:    $(GITPS_OBJS)
  77.     $(CC) $(LDFLAGS) -o $@ $(GITPS_OBJS) $(LIBS)
  78.  
  79. gitview: $(GITVIEW_OBJS)
  80.      $(CC) $(LDFLAGS) -o $@ $(GITVIEW_OBJS) $(LIBS)
  81.  
  82. gitcmp:    $(GITCMP_OBJS)
  83.     $(CC) $(LDFLAGS) -o $@ $(GITCMP_OBJS) $(LIBS)
  84.  
  85. gitkeys: $(GITKEYS_OBJS)
  86.      $(CC) $(LDFLAGS) -o $@ $(GITKEYS_OBJS) $(LIBS)
  87.  
  88. gitmatch: $(GITMATCH_OBJS)
  89.       $(CC) $(LDFLAGS) -o $@ $(GITMATCH_OBJS) $(LIBS)
  90.  
  91. gitwipe: $(GITWIPE_OBJS)
  92.      $(CC) $(LDFLAGS) -o $@ $(GITWIPE_OBJS) $(LIBS)
  93.  
  94. install:
  95.     for i in $(GIT_BINS);\
  96.     do\
  97.         $(INSTALL_PROGRAM) -s $$i $(bindir)/$$i;\
  98.     done
  99.     for i in $(GIT_SCRIPTS);\
  100.     do\
  101.         $(INSTALL_PROGRAM) $(srcdir)/$$i $(bindir)/$$i;\
  102.     done
  103.  
  104. dep:
  105.     sed '/\#\#\# Dependencies/q' < Makefile.in > tmp_make
  106.     (for i in *.c;\
  107.     do\
  108.         $(CPP) -MM $$i;\
  109.     done) >> tmp_make
  110.     mv tmp_make Makefile.in
  111.  
  112. uninstall:
  113.     cd $(bindir) && rm -f $(GIT_BINS)
  114.     cd $(bindir) && rm -f $(GIT_SCRIPTS)
  115.  
  116. clean:
  117.     rm -f *.o *~ core* tutu* gogu* $(GIT_BINS)
  118.  
  119. mostlyclean: clean
  120.  
  121. distclean: clean
  122.     rm -f Makefile config.status config.log config.cache
  123.  
  124. realclean: distclean
  125.  
  126.  
  127. ### Dependencies
  128. configure.o : configure.c file.h xstring.h stdc.h tty.h window.h configure.h \
  129.   misc.h 
  130. fnmatch.o : fnmatch.c fnmatch.h 
  131. fsusage.o : fsusage.c xio.h stat.h stdc.h fsusage.h 
  132. git.o : git.c file.h stdc.h xstring.h xmalloc.h xio.h stat.h xtimer.h tty.h \
  133.   window.h inputline.h status.h panel.h xstack.h configure.h signals.h system.h \
  134.   history.h tilde.h misc.h 
  135. gitcmp.o : gitcmp.c file.h 
  136. gitkeys.o : gitkeys.c stdc.h xio.h stat.h 
  137. gitmatch.o : gitmatch.c fnmatch.h 
  138. gitps.o : gitps.c file.h stdc.h xstring.h xmalloc.h tty.h window.h configure.h \
  139.   tilde.h misc.h 
  140. gitview.o : gitview.c file.h stdc.h xstring.h xmalloc.h xio.h stat.h window.h \
  141.   configure.h tty.h misc.h tilde.h 
  142. gitwipe.o : gitwipe.c file.h 
  143. history.o : history.c file.h xio.h stat.h stdc.h xstring.h history.h xmalloc.h 
  144. inputline.o : inputline.c xstring.h stdc.h xmalloc.h configure.h history.h tty.h \
  145.   window.h inputline.h tilde.h misc.h 
  146. misc.o : misc.c xstring.h stdc.h xmalloc.h configure.h file.h tty.h window.h \
  147.   misc.h 
  148. panel.o : panel.c file.h stdc.h xstring.h xmalloc.h xio.h stat.h xid.h xtimer.h \
  149.   fsusage.h window.h status.h signals.h tty.h inputline.h panel.h xstack.h tilde.h \
  150.   fnmatch.h configure.h system.h misc.h 
  151. signals.o : signals.c signals.h stdc.h inputline.h window.h tty.h misc.h 
  152. status.o : status.c xstring.h stdc.h xmalloc.h window.h status.h configure.h \
  153.   tty.h misc.h 
  154. system.o : system.c xmalloc.h stdc.h xio.h stat.h tty.h window.h xtimer.h signals.h \
  155.   inputline.h system.h misc.h 
  156. tilde.o : tilde.c xmalloc.h stdc.h xstring.h tilde.h 
  157. tty.o : tty.c file.h stdc.h xstring.h xmalloc.h xtimer.h xio.h stat.h tty.h \
  158.   window.h misc.h 
  159. window.o : window.c window.h stdc.h xmalloc.h tty.h 
  160. xid.o : xid.c xstring.h stdc.h xmalloc.h xid.h 
  161. xio.o : xio.c xmalloc.h stdc.h xio.h stat.h 
  162. xmalloc.o : xmalloc.c xmalloc.h stdc.h 
  163. xstack.o : xstack.c xmalloc.h stdc.h xstring.h xstack.h 
  164. xstring.o : xstring.c xmalloc.h stdc.h xstring.h 
  165. xtimer.o : xtimer.c xmalloc.h stdc.h xstring.h xtimer.h misc.h 
  166.